package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Orders;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Date;

public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    public void submit(Orders orders);

    R<Page> userPage(int page, int pageSize);

    R<Page> page(Integer page, Integer pageSize, String number,Date beginTime,Date endTime);

    R<String> update(Orders orders);

    R<String> again(Orders orders);
}
